package org.jeecg.modules.room.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.room.entity.RoomInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.room.vo.RoomCheckVo;
import org.jeecg.modules.room.vo.RoomStatusVo;

/**
 * @Description: 房间信息
 * @Author: jeecg-boot
 * @Date:   2023-12-01
 * @Version: V1.0
 */
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    //查询可用房间
    public IPage<RoomInfo> selectUsableRoomList(IPage<RoomInfo> page, @Param("roomTypeCode")String roomTypeCode, @Param("roomCode")String roomCode,
                                                @Param("roomLevelCode")String roomLevelCode, @Param("isSelfUse")String isSelfUse, @Param("roomDesc")String roomDesc,
                                                @Param("dateArrival")String dateArrival, @Param("dateDeparture")String dateDeparture);

    //查询可用房间数
    public RoomCheckVo selectUsableRoomNum(Map map);
}
